<?php

namespace App\Modules\CodeDesigner\ObserveMode;

// 委托类
class Worker
{
    /**
     * @var Base
     */
    private $base;

    public function __construct()
    {
        $this->base = new Base();
    }

    public function __call($name, $arguments)
    {
        call_user_func([$this->base, $name], ...$arguments);
    }

    public static function __callStatic($name, $arguments)
    {
        call_user_func(['App\Modules\CodeDesigner\ObserveMode\Base', $name], ...$arguments);
    }
}